package com.newsystem.mapper;

import com.newsystem.pojo.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newsystem.pojo.vo.AdminInfo;
import com.newsystem.pojo.vo.AdminInfo2;
import com.newsystem.pojo.vo.GeneralUserInfo;
import com.newsystem.pojo.vo.MediumInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 管理员 Mapper 接口
 * </p>
 *
 * @author chenlitao
 * @since 2022-11-06
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    AdminInfo selectByAdminUserId(String adminUserId);

    List<GeneralUserInfo> selectAllGeneralUser(Integer startpage,Integer endpage);

    List<GeneralUserInfo> selectAllGeneralUsered(Integer startpage,Integer endpage);

    List<GeneralUserInfo> selectAllGeneralUserExit(Integer startpage,Integer endpage);

    List<MediumInfo> selectAllMedium(Integer startpage,Integer endpage);

    List<MediumInfo> selectAllMediumExit(Integer startpage,Integer endpage);

    List<MediumInfo> selectAllMediumed(Integer startpage,Integer endpage);

//    int deleteUser(List<String> idList);

    int deleteGenUser(List<String> idList);

    int deleteMedium(List<String> idList);

    int updateAdmin(AdminInfo2 adminInfo2);

}
